package org.ezjava.rpc.sb.provider.listener;

import org.ezjava.rpc.sb.provider.rpc.TFServer;
import org.springframework.boot.context.event.ApplicationReadyEvent;
import org.springframework.context.ApplicationListener;

/**
 * @author Erik
 * @create 2021-08-10 15:46
 * @description
 **/
public class TFServerListener implements ApplicationListener<ApplicationReadyEvent> {


    @Override
    public void onApplicationEvent(ApplicationReadyEvent applicationReadyEvent) {
        //另外一种方法启动服务
//        applicationReadyEvent.getApplicationContext().getBean(TFServer.class).startServer();


    }
}
